<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CORS_demo</title>
  <script src="../../echarts_demo/lib/jquery.min.js"></script>
</head>
<body>
  <button id='btn'>点我</button>
  
  <script type="text/javascript">
    $('#btn').click(function(){
      $.ajax({
        type:'get',
        url:'http://localhost:8888/api/map',
        success:function(data){
          console.log(data)
        }
      })


    })
  
  
  </script>
</body>
</html>